package com.mccrea.pattern.mediator;

/**
 * @Classname Mediator
 * @Description 抽象中介者（接口）
 * @Date 2021/5/24 0024 11:18
 * @Created by Mccrea_Gao
 */
public interface Mediator {

    /**
     * 注册
     * @param colleague
     */
    void register(Colleague colleague);

    /**
     * 转发
     * @param colleague
     */
    void relay(Colleague colleague);
}
